<script>
    //1:定义对象
    let user = {"name":"lucy","age":20}
    //传统做法从对象里获取值
    let name1 = user.name
    let age1 = user.age

    console.log(name1)
    console.log(age1)

    //es6获取对象值
    let {name,age} = user
    console.log(name + "***" + age)
</script>